//
//左右滚动相关函数
//
function autoScroll(id1,id2,to,num,old1,old2)
{
	zp_scroll(id1,id2,to,num);
	t=setTimeout("autoScrollIme('"+id1+"','"+id2+"','"+to+"',"+num+","+old1+","+old2+")",1000);
}
function autoScrollIme(id1,id2,to,num,old1,old2){
	var currPos1=$('#'+id1).scrollLeft();
	var currPos2=$('#'+id2).scrollLeft();
	if(currPos1==old1 && currPos2==old2){
		if(to=='right'){
			to='left';
		}else{
			to='right';
		}
	}
	autoScroll(id1,id2,to,num,currPos1,currPos2);
}
function stopScroll()
{
	clearTimeout(t);
}
$('#car_right_main_brands_c_list_c').mouseenter(function(e) {
	clearTimeout(t);
});
$('#car_right_main_brands_c_list_c').mouseleave(function(e) {
	autoScroll('car_right_main_brands_c_list','car_right_main_brands_c_list_c','right',100,0,0);
});
$('.car_right_main_brands_l').mouseenter(function(e) {
	clearTimeout(t);
});
$('.car_right_main_brands_l').mouseleave(function(e) {
	autoScroll('car_right_main_brands_c_list','car_right_main_brands_c_list_c','right',100,0,0);
});
$('.car_right_main_brands_r').mouseenter(function(e) {
	clearTimeout(t);
});
$('.car_right_main_brands_r').mouseleave(function(e) {
	autoScroll('car_right_main_brands_c_list','car_right_main_brands_c_list_c','right',100,0,0);
});
